package com.lujieni.nio.c1;

import java.nio.ByteBuffer;
import java.sql.SQLOutput;

public class TestByteBufferAllocate {


    public static void main(String[] args) {
        System.out.println(ByteBuffer.allocate(16).getClass().getName()); //java.nio.HeapByteBuffer 堆内存

        System.out.println(ByteBuffer.allocateDirect(12).getClass().getName()); // java.nio.DirectByteBuffer 系统内存

    }

}
